const arr = [1, 2, {name: 'zs'}];
const newArr = arr.slice();
newArr[2].name = 'ls';
console.log(newArr);
console.log(arr)